import common from './common'

const paths = {
  saveAndGetPushLog: 'inv/push/log/saveAndGetPushLog',
  rePullRecord: 'investment/message/rePullRecord',
  saveInvestmentProjectRecordMultiThread: 'investment/project/saveInvestmentProjectRecordMultiThread',
  getLocalInvProjectData: 'investment/project/getLocalInvProjectData'
}
const service = {};
(function (service) {
  service.saveAndGetPushLog = (projectId) => {
    return common.post(paths.saveAndGetPushLog, { projectId }, null)
  }
  service.rePullRecord = (recordParams) => {
    return common.post(paths.rePullRecord, recordParams, null)
  }
  service.saveInvestmentProjectRecordMultiThread = (params) => {
    return common.get(paths.saveInvestmentProjectRecordMultiThread, params)
  }
  service.getLocalInvProjectData = (params) => {
    return common.get(paths.getLocalInvProjectData, params)
  }
})(service)

export default service
